// Rectangle drawing functions
#include <screen.h>

extern unsigned fb_seg;
extern uint8 * double_buffer;

// OPTIMISATION NEEDED

void draw_rect(int x, int y, int w, int h, int c)
{
	int j,i;
	for(j=y; j < (y+h); j++)
		for(i=x; i < (x+w); i++)
			g_write_pixel(i,j,c);
	refresh_screen();
}

void plot_rect(int x, int y, int w, int h, int c, unsigned width, uint32* buffer)
{
	int j,i;
	for(j=y; j < (y+h); j++)
		for(i=x; i < (x+w); i++)
			plot_pixel(i,j,c, width, buffer);
}
